import React from "react";
import MainLayout from "@/component/mainLayout/mainLayout";

export default props => {
	const _pageParams = {
		header: {
			title: "活动规则"
		},
		history: props.history,
		cacheLifecycles: props.cacheLifecycles
	};

	const { text } = props.location.state;
	return (
		<MainLayout pageParams={_pageParams}>
			<div
				dangerouslySetInnerHTML={{ __html: text }}
				style={{ padding: 20 }}
			></div>
		</MainLayout>
	);
};
